﻿using CharacterCreation.Data.Services;
using CharacterCreation.Data.Models;
using System.Collections.ObjectModel;

namespace CharacterCreation.Views {
    /// <summary>
    /// The viewmodel 
    /// </summary>
    public class RaceListViewModel {

        private RaceService _raceService = RaceService.CreateInstance();

        /// <summary>
        /// Gets or sets the Characters
        /// </summary>
        public ObservableCollection<Race> Races {
            get { return _raceService.Items; }
        }

        /// <summary>
        /// Gets or sets the CurrentCharacter
        /// </summary>
        public Race CurrentRace {
            get { return _raceService.CurrentItem; }
            set { _raceService.CurrentItem = value; }
        }

        public RaceListViewModel() {
        }
    }
}
